import http from './http'
// 封装一个用于登录的请求函数
export const loginApi = (params:LoginParams):RS<string>=>http.post('/1024/login',params);

// 获取首页信息
export const homeDataApi = ():RS<HomeData>=>http.get('/6666')

export const questionTypesApi = (actionCode:string):RS<QuestionType[]>=>http.get(`/1314/${actionCode}/all`)

export const getQustionListApi = (params:QuestionListParams):RS<Question[]>=>http.post('/1314',params)

export const getSubjectsApi = ():RS<Subject[]>=>http.get('/6666/field')